﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Lion.WeiXin.Core.Models;
namespace Lion.WeiXin.Core.Data
{
   public interface IRole
    {
       
		/// <summary>
		/// 得到最大ID
		/// </summary>
		int GetMaxId();
		/// <summary>
		/// 是否存在该记录
		/// </summary>
		bool Exists(int AID);
		/// <summary>
		/// 增加一条数据
		/// </summary>
		bool Add(Models.RoleModel model);
		/// <summary>
		/// 更新一条数据
		/// </summary>
		bool Update(Models.RoleModel model);
		/// <summary>
		/// 删除一条数据
		/// </summary>
		bool Delete(int AID);
		bool DeleteList(string AIDlist );
		/// <summary>
		/// 得到一个对象实体
		/// </summary>
		Models.RoleModel GetModel(int AID);		
		/// <summary>
		/// 获得数据列表
		/// </summary>
        List<Models.RoleModel> GetList(string strWhere);
		/// <summary>
		/// 获得前几行数据
		/// </summary>
        List<Models.RoleModel> GetList(int Top, string strWhere, string filedOrder);
		int GetRecordCount(string strWhere);
        List<Models.RoleModel> GetListByPage(string strWhere, string orderby, int startIndex, int endIndex);
		
	
    }
}
